package shiyan5;
import java.util.Comparator;
public class EmployeeComparator implements Comparator<Employee> {
	int i;
	public int compare(Employee bir1, Employee bir2){
		if( bir1.getebirth().getTime()>bir2.getebirth().getTime()){
			return 1;
		}else if(bir1.getebirth().getTime()<bir2.getebirth().getTime()){
			return -1;
		}
		else{
			return 0;
		}		
	}
}